package com.group.itms.routes.data;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class Option {

	public static final String NAME = "name";

	public static final String IS_ACTIVE = "isActive";
	
	@DatabaseField(id = true)
	private int id;
	@DatabaseField(foreign = true, foreignAutoRefresh = true)
	private ObjectType objectType;
	@DatabaseField(columnName=NAME)
	private String name;
	@DatabaseField
	private int inputType;
	@DatabaseField(columnName = IS_ACTIVE)
	private boolean isActive;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public ObjectType getObjectType() {
		return objectType;
	}

	public void setObjectType(ObjectType objectType) {
		this.objectType = objectType;
	}

	public String getName() {
		return name;
	}

	
	public void setName(String name) {
		this.name = name;
	}

	public int getInputType() {
		return inputType;
	}

	public void setInputType(int inputType) {
		this.inputType = inputType;
	}

	public boolean isActive() {
		return isActive;
	}

	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}
	
	@Override
	public String toString() {
		return name;
	}

}
